<template>
  <div class="topcontent">
    <div class="content_box">
      <div v-for="item in list">
        <router-link :to="item.url">
          {{item.name}}
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        data () {
            return {
              list:[{name:"新闻",url:"/news"},
                {name:"财经",url:"/money"},
                {name:"娱乐",url:"/happy"},
                {name:"体育",url:"/sport"},
                {name:"更多",url:"/more"},
                {name:"军事",url:"/soldier"},
                {name:"NBA",url:"/nba"},
                {name:"应用",url:"/app"},
                {name:"科技",url:"/sci"},
                {name:"星座",url:"/xz"}]
            }
        },

    }
</script>

<style>
    .topcontent{
      width: 100%;
      height: 80px;
      background-color: #4998e7;
      color: white;
      font-size: 18px;
    }
    .content_box{
      width: 100%;
    }
  .content_box div{
    width: 20%;
    text-align: center;
    height: 40px;
    line-height: 40px;
    float: left;
  }
  .content_box a{
    color: white;
  }
</style>
